import request from "@/utils/request"
import type { Environment } from "./type"

export const getEnvironmentList = () => {
    return request.get("/code/environment/list")
}

export const createEnvironment = (data: Environment) => {
    return request.post("/code/environment/create", data)
}